home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 201-225 / disk_218 / edlib / stoupper.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  442b  |  23 lines

  1. /*
  2.  * edlib v1.1 Copyright 1989 Edwin Hoogerbeets
  3.  * This code is freely redistributable as long as no charge other than
  4.  * reasonable copying fees are levied for it.
  5.  */
  6.  
  7. /*
  8.     string to upper changes all lower case letters in a string to upper
  9.     case.
  10. */
  11. #include <ctype.h>
  12.  
  13. char *stoupper(str)
  14. register char *str;
  15. {
  16.     register char *temp = str;
  17.  
  18.     for ( ; *temp ; temp++ )
  19.         *temp = (char) toupper(*temp);
  20.  
  21.     return(str);
  22. }
  23.